GTlsProtocolVersion

The TLS or DTLS protocol version used by a #GTlsConnection or #GDtlsConnection. The integer values of these versions are sequential to ensure newer known protocol versions compare greater than older known versions. Any known DTLS protocol version will compare greater than any SSL or TLS protocol version. The protocol version may be %G_TLS_PROTOCOL_VERSION_UNKNOWN if the TLS backend supports a newer protocol version that GLib does not yet know about. This means that it's possible for an unknown DTLS protocol version to compare less than the TLS protocol versions.

Values

ValueMeaning
UNKNOWN0

No protocol version or unknown protocol version

SSL_3_01

SSL 3.0, which is insecure and should not be used

TLS_1_02

TLS 1.0, which is insecure and should not be used

TLS_1_13

TLS 1.1, which is insecure and should not be used

TLS_1_24

TLS 1.2, defined by RFC 5246

TLS_1_35

TLS 1.3, defined by RFC 8446

DTLS_1_0201

DTLS 1.0, which is insecure and should not be used

DTLS_1_2202

DTLS 1.2, defined by RFC 6347

Meta

Since

2.70